package edu.cueb.wmis.pojo;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liuzizhuo
 * @since 2021-04-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_orderbillitem")
@ApiModel(value="Orderbillitem对象", description="")
public class Orderbillitem implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("货物Id")
    private Integer goodId;

    @ApiModelProperty("预选物品数量")
    private Integer number;

    @ApiModelProperty("总价")
    private BigDecimal amount;

    @ApiModelProperty("所属预选概单Id")
    private Integer billId;

    @ApiModelProperty("物品对象")
    @TableField(exist = false)
    private Good good;

    @ApiModelProperty("出库时间")
    @TableField(exist = false)
    private LocalDate outTime;

}
